<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改服务分类')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-serinfotype-edit" th:object="${lmSerinfotype}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">服务名称：</label>
                <div class="col-sm-8">
                    <input name="serviceName" th:field="*{serviceName}" class="form-control" type="text">
                </div>
            </div>
          <!--  <div class="form-group">
                <label class="col-sm-3 control-label">是否热门服务：</label>
                <div class="col-sm-8">
                    <input name="isHot" th:field="*{isHot}" class="form-control" type="text">
                </div>
            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">上级分类名称：</label>
                <div class="col-sm-8">
                    <input id="parentServiceName" name="parentServiceName" th:field="*{parentServiceName}" class="form-control" type="text" onclick="selectUsersToParent()">
                    <input id="fid" name="fid" class="form-control" type="hidden">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "lm/serinfotype";
        $("#form-serinfotype-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-serinfotype-edit').serialize());
            }
        }

        function selectUsersToParent(){
            $.modal.open("选择上级分类", prefix + "/parent");
        }
    </script>
</body>
</html>